package com.baosight.risk.api.riaa;


import java.util.List;
import java.util.Map;

import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.quartz.entity.SyncEmpleeEntitiy;
import com.baosight.risk.service.riaa.entity.RiaaQuesInquiry;
import com.baosight.risk.service.riaa.entity.RiquInquiryComp;
import com.baosight.risk.service.riaa.vo.RiaaQuesInquiryVO;
import com.baosight.risk.service.xtzy.entity.XtzyUser;

/**
 * 类 名: RiaaQuesInquiryService
 * 作 者: gaohan
 * 创 建：2019年06月05日
 * 版 本：v2.2.0
 * 历 史: (版本) 作者 时间 注释
 */
public interface RiaaQuesInquiryService extends BaseService<RiaaQuesInquiry> {

    List<RiaaQuesInquiry> selectList(RiaaQuesInquiry inquiry);

    RiaaQuesInquiryVO selectById(String quId);

    RiaaQuesInquiryVO saveInquiry(RiaaQuesInquiryVO inquiryVO);

    void saveSendInquiry(String id, String flag) throws Exception;

    Integer deleteInquiry(String id);

    Map exportQues(String id);
    
    Map exportQuesBGTA(String id);

    List<Map> queryCompUser(Map<String, Object> map) throws Exception;

    void deleteType(List<String> ids);

    /**
     * 问卷制作移交管理员
     *
     */
    void updateSubmitUser(SyncEmpleeEntitiy employee, RiquInquiryComp riquInquiryComp) throws Exception;


    /**
     *
     **/
    void handOverUser(XtzyUser xtzyUser, RiquInquiryComp riquInquiryComp) throws Exception;





    /**
     *（通用）从EHR添加人员到系统，并赋予角色
     */
    Map<String, Object> addUserToSystem(SyncEmpleeEntitiy employee, String deptCode, String roleCode) throws Exception;

}
